create index ix_ScanHistory_1 on ScanHistory (SessionID)
create index ix_ScanHistory_2 on ScanHistory (DatabaseID, ObjectType)